package com.cskaoyan.service;
import com.cskaoyan.bean.data.*;
import com.cskaoyan.bean.pojo.User;
import com.cskaoyan.bean.wxbo.WxCollectBO;
import com.cskaoyan.bean.wxvo.WxCollectVO;

import java.math.BigDecimal;

public interface UserService {
    /** ganfulin
     * 以下六个是会员管理模块
     * @param page
     * @param limit
     * @param sort
     * @param order
     * @return
     */
    UserData selectUserData(Integer page, Integer limit, String sort, String order, String username, String mobile);

    AddressData selectAddressData(Integer page, Integer limit, String sort, String order, Integer userId, String name);

    CollectData selectCollectData(Integer page, Integer limit, String sort, String order, Integer id, Integer userId);

    FootprintData selectFootprintData(Integer page, Integer limit, String sort, String order, Integer goodsId, Integer userId);

    SearchHistoryData selectSearchHistoryData(Integer page, Integer limit, String sort, String order, Integer userId, String keyword);

    FeedBackData selectFeedBackData(Integer page, Integer limit, String sort, String order, Integer id, String username);

    /**
     * 首页
     * @param dashboardData
     * @return
     */
    DashboardData selectDashboardData(DashboardData dashboardData);


    int selectValueIdByUserId(Integer userId);

    int selectTypeByUserId(Integer userId);

    /**
     * 根据userid collect表中查到id，之后根据id去goods表查
     * @param userId
     * @return
     */
    int selectIdByUserId(Integer userId);

    String selectNameById(int id);

    String selectBriefById(int id);

    String selectPicUrlById(int id);

    BigDecimal selectRetailPriceById(int id);

    User selectUserByName(String name);

    int addOrDelete(Integer type, Integer valueId, Integer id);

    WxCollectVO collectList(Integer id, WxCollectBO wxCollectBO);
}
